package com.heima.pojos;


import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
import lombok.Data;

import java.io.Serializable;
import java.time.LocalDateTime;
@Data
public class Assignment implements Serializable {

  private static final long serialVersionUID = 1L;
  @TableId
  @JsonSerialize(using = ToStringSerializer.class)
  private long id;
  private long userId;
  private String name;
  private String memo;
  private long type;

  @TableField(fill = FieldFill.INSERT)
  private LocalDateTime createdOn;
  private String isDeleted;
}